package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmDbspaceArg {
    private String pk_name = "DBSPACE_NAME";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmDbspaceCriteria> oredCriteria;

    public DmDbspaceArg() {
        oredCriteria = new ArrayList<DmDbspaceCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmDbspaceCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmDbspaceCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmDbspaceCriteria or() {
    	DmDbspaceCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmDbspaceCriteria createCriteria() {
    	DmDbspaceCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmDbspaceCriteria createCriteriaInternal() {
    	DmDbspaceCriteria criteria = new DmDbspaceCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmDbspaceCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmDbspaceCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmDbspaceCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmDbspaceCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmDbspaceCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmDbspaceCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmDbspaceCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmDbspaceCriterion(condition, value1, value2));
        }

        public DmDbspaceCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmDbspaceCriteria) this;
        }
        public DmDbspaceCriteria andDbspaceNameIsNull() {
            addCriterion("DBSPACE_NAME is null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameIsNotNull() {
            addCriterion("DBSPACE_NAME is not null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameEqualTo(String value) {
            addCriterion("DBSPACE_NAME =", value, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameNotEqualTo(String value) {
            addCriterion("DBSPACE_NAME <>", value, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameGreaterThan(String value) {
            addCriterion("DBSPACE_NAME >", value, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameGreaterThanOrEqualTo(String value) {
            addCriterion("DBSPACE_NAME >=", value, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameLessThan(String value) {
            addCriterion("DBSPACE_NAME <", value, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameLessThanOrEqualTo(String value) {
            addCriterion("DBSPACE_NAME <=", value, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameLike(String value) {
            addCriterion("DBSPACE_NAME like ", value, "DBSPACE_NAME", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameNotLike(String value) {
            addCriterion("DBSPACE_NAME  not like ", value, "DBSPACE_NAME", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameLeftLike(String value) {
            addCriterion("DBSPACE_NAME like ", value, "DBSPACE_NAME", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameNotLeftLike(String value) {
            addCriterion("DBSPACE_NAME  not like ", value, "DBSPACE_NAME", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameRightLike(String value) {
            addCriterion("DBSPACE_NAME like ", value, "DBSPACE_NAME", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameNotRightLike(String value) {
            addCriterion("DBSPACE_NAME  not like ", value, "DBSPACE_NAME", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameIn(List<String> values) {
            addCriterion("DBSPACE_NAME  in ", values, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameNotIn(List<String> values) {
            addCriterion("DBSPACE_NAME not in ", values, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameBetween(String value1, String value2) {
            addCriterion("DBSPACE_NAME between ", value1, value2, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbspaceNameNotBetween(String value1, String value2) {
            addCriterion("DBSPACE_NAME not between ", value1, value2, "DBSPACE_NAME");
            return (DmDbspaceCriteria) this;
        }
        public DmDbspaceCriteria andNodeIdIsNull() {
            addCriterion("NODE_ID is null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdIsNotNull() {
            addCriterion("NODE_ID is not null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdEqualTo(Integer value) {
            addCriterion("NODE_ID =", value, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdNotEqualTo(Integer value) {
            addCriterion("NODE_ID <>", value, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdGreaterThan(Integer value) {
            addCriterion("NODE_ID >", value, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("NODE_ID >=", value, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdLessThan(Integer value) {
            addCriterion("NODE_ID <", value, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdLessThanOrEqualTo(Integer value) {
            addCriterion("NODE_ID <=", value, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdLike(Integer value) {
            addCriterion("NODE_ID like ", value, "NODE_ID", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdNotLike(Integer value) {
            addCriterion("NODE_ID  not like ", value, "NODE_ID", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdLeftLike(Integer value) {
            addCriterion("NODE_ID like ", value, "NODE_ID", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdNotLeftLike(Integer value) {
            addCriterion("NODE_ID  not like ", value, "NODE_ID", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdRightLike(Integer value) {
            addCriterion("NODE_ID like ", value, "NODE_ID", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdNotRightLike(Integer value) {
            addCriterion("NODE_ID  not like ", value, "NODE_ID", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdIn(List<Integer> values) {
            addCriterion("NODE_ID  in ", values, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdNotIn(List<Integer> values) {
            addCriterion("NODE_ID not in ", values, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdBetween(Integer value1, Integer value2) {
            addCriterion("NODE_ID between ", value1, value2, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andNodeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("NODE_ID not between ", value1, value2, "NODE_ID");
            return (DmDbspaceCriteria) this;
        }
        public DmDbspaceCriteria andDbLinkIdIsNull() {
            addCriterion("DB_LINK_ID is null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdIsNotNull() {
            addCriterion("DB_LINK_ID is not null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdEqualTo(Integer value) {
            addCriterion("DB_LINK_ID =", value, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdNotEqualTo(Integer value) {
            addCriterion("DB_LINK_ID <>", value, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdGreaterThan(Integer value) {
            addCriterion("DB_LINK_ID >", value, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DB_LINK_ID >=", value, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdLessThan(Integer value) {
            addCriterion("DB_LINK_ID <", value, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdLessThanOrEqualTo(Integer value) {
            addCriterion("DB_LINK_ID <=", value, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdLike(Integer value) {
            addCriterion("DB_LINK_ID like ", value, "DB_LINK_ID", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdNotLike(Integer value) {
            addCriterion("DB_LINK_ID  not like ", value, "DB_LINK_ID", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdLeftLike(Integer value) {
            addCriterion("DB_LINK_ID like ", value, "DB_LINK_ID", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdNotLeftLike(Integer value) {
            addCriterion("DB_LINK_ID  not like ", value, "DB_LINK_ID", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdRightLike(Integer value) {
            addCriterion("DB_LINK_ID like ", value, "DB_LINK_ID", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdNotRightLike(Integer value) {
            addCriterion("DB_LINK_ID  not like ", value, "DB_LINK_ID", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdIn(List<Integer> values) {
            addCriterion("DB_LINK_ID  in ", values, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdNotIn(List<Integer> values) {
            addCriterion("DB_LINK_ID not in ", values, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdBetween(Integer value1, Integer value2) {
            addCriterion("DB_LINK_ID between ", value1, value2, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andDbLinkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DB_LINK_ID not between ", value1, value2, "DB_LINK_ID");
            return (DmDbspaceCriteria) this;
        }
        public DmDbspaceCriteria andFreeSpaceIsNull() {
            addCriterion("FREE_SPACE is null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceIsNotNull() {
            addCriterion("FREE_SPACE is not null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceEqualTo(BigDecimal value) {
            addCriterion("FREE_SPACE =", value, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceNotEqualTo(BigDecimal value) {
            addCriterion("FREE_SPACE <>", value, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceGreaterThan(BigDecimal value) {
            addCriterion("FREE_SPACE >", value, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("FREE_SPACE >=", value, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceLessThan(BigDecimal value) {
            addCriterion("FREE_SPACE <", value, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("FREE_SPACE <=", value, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceLike(BigDecimal value) {
            addCriterion("FREE_SPACE like ", value, "FREE_SPACE", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceNotLike(BigDecimal value) {
            addCriterion("FREE_SPACE  not like ", value, "FREE_SPACE", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceLeftLike(BigDecimal value) {
            addCriterion("FREE_SPACE like ", value, "FREE_SPACE", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceNotLeftLike(BigDecimal value) {
            addCriterion("FREE_SPACE  not like ", value, "FREE_SPACE", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceRightLike(BigDecimal value) {
            addCriterion("FREE_SPACE like ", value, "FREE_SPACE", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceNotRightLike(BigDecimal value) {
            addCriterion("FREE_SPACE  not like ", value, "FREE_SPACE", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceIn(List<BigDecimal> values) {
            addCriterion("FREE_SPACE  in ", values, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceNotIn(List<BigDecimal> values) {
            addCriterion("FREE_SPACE not in ", values, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FREE_SPACE between ", value1, value2, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andFreeSpaceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FREE_SPACE not between ", value1, value2, "FREE_SPACE");
            return (DmDbspaceCriteria) this;
        }
        public DmDbspaceCriteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeEqualTo(String value) {
            addCriterion("UPDATE_TIME =", value, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeNotEqualTo(String value) {
            addCriterion("UPDATE_TIME <>", value, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeGreaterThan(String value) {
            addCriterion("UPDATE_TIME >", value, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("UPDATE_TIME >=", value, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeLessThan(String value) {
            addCriterion("UPDATE_TIME <", value, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeLessThanOrEqualTo(String value) {
            addCriterion("UPDATE_TIME <=", value, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeLike(String value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeNotLike(String value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 1);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeLeftLike(String value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeNotLeftLike(String value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 0);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeRightLike(String value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeNotRightLike(String value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 2);
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeIn(List<String> values) {
            addCriterion("UPDATE_TIME  in ", values, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeNotIn(List<String> values) {
            addCriterion("UPDATE_TIME not in ", values, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeBetween(String value1, String value2) {
            addCriterion("UPDATE_TIME between ", value1, value2, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

        public DmDbspaceCriteria andUpdateTimeNotBetween(String value1, String value2) {
            addCriterion("UPDATE_TIME not between ", value1, value2, "UPDATE_TIME");
            return (DmDbspaceCriteria) this;
        }

    }

    public static class DmDbspaceCriteria extends GeneratedCriteria {

        protected DmDbspaceCriteria() {
            super();
        }
    }

    public static class DmDbspaceCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmDbspaceCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmDbspaceCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmDbspaceCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmDbspaceCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmDbspaceCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmDbspaceCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}